﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Model.RolePopedom
{
    /// <summary>
    /// 模块与权限组合
    /// </summary>
    public class ModulePermission
    {
        /// <summary>
        /// 管理员管理
        /// </summary>
        [Category("管理员管理")]
        [Description("管理员管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Insert | PermissionEnum.Update | PermissionEnum.Delete | PermissionEnum.Pass)]
        public int Admin=1001;

        /// <summary>
        /// 角色管理
        /// </summary>
        [Category("角色管理")]
        [Description("角色管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Insert | PermissionEnum.Update | PermissionEnum.Delete)]
        public int Role = 1004;

        /// <summary>
        /// 网站设置
        /// </summary>
        [Category("网站设置")]
        [Description("网站设置")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Update)]
        public int WebSite = 1005;

        /// <summary>
        /// SEO管理
        /// </summary>
        [Category("SEO管理")]
        [Description("SEO管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Insert | PermissionEnum.Update | PermissionEnum.Delete | PermissionEnum.Enabled)]
        public int SEO = 1006;

        /// <summary>
        /// 全文关键词管理
        /// </summary>
        [Category("全文关键词管理")]
        [Description("全文关键词管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Insert | PermissionEnum.Update | PermissionEnum.Delete | PermissionEnum.Enabled | PermissionEnum.NewWindow)]
        public int KeyWord = 1007;

        /// <summary>
        /// QQ/MSN管理
        /// </summary>
        [Category("QQ/MSN管理")]
        [Description("QQ/MSN管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Insert | PermissionEnum.Update | PermissionEnum.Delete | PermissionEnum.Enabled)]
        public int QQMSN = 1008;

        /// <summary>
        /// 后台日志管理
        /// </summary>
        [Category("后台日志管理")]
        [Description("后台日志管理")]
        [PermissionOption(PermissionEnum.Select)]
        public int AdminLog = 1009;

        /// <summary>
        /// 会员管理
        /// </summary>
        [Category("会员管理")]
        [Description("会员管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Insert | PermissionEnum.Update | PermissionEnum.Delete | PermissionEnum.Pass)]
        public int User = 1010;
        
        /// <summary>
        /// 空间管理
        /// </summary>
        [Category("空间管理")]
        [Description("空间管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Update | PermissionEnum.Delete)]
        public int Qzone = 1011;
        
        /// <summary>
        /// QQ表情管理
        /// </summary>
        [Category("QQ表情管理")]
        [Description("QQ表情管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Update | PermissionEnum.Delete)]
        public int QQExpression = 1012;
        
        /// <summary>
        /// 关注管理
        /// </summary>
        [Category("关注管理")]
        [Description("关注管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Update | PermissionEnum.Delete)]
        public int PayAttention = 1013;
        
        /// <summary>
        /// 印象管理
        /// </summary>
        [Category("印象管理")]
        [Description("印象管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Update | PermissionEnum.Delete)]
        public int Impression = 1014;
        
        /// <summary>
        /// 网名管理
        /// </summary>
        [Category("网名管理")]
        [Description("网名管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Update | PermissionEnum.Delete)]
        public int NetName = 1015;
        
        /// <summary>
        /// 签名管理
        /// </summary>
        [Category("签名管理")]
        [Description("签名管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Update | PermissionEnum.Delete)]
        public int Signature = 1016;
        
        /// <summary>
        /// 个性图片管理
        /// </summary>
        [Category("个性图片管理")]
        [Description("个性图片管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Update | PermissionEnum.Delete)]
        public int PersonalityImg = 1017;
        
        /// <summary>
        /// 空间素材管理
        /// </summary>
        [Category("空间素材管理")]
        [Description("空间素材管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Update | PermissionEnum.Delete)]
        public int SpaceMaterial = 1018;

        /// <summary>
        /// 空间Falsh管理
        /// </summary>
        [Category("空间Falsh管理")]
        [Description("空间Falsh管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Update | PermissionEnum.Delete)]
        public int SpaceFlash = 1019;

        /// <summary>
        /// 色系管理
        /// </summary>
        [Category("色系管理")]
        [Description("色系管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Insert | PermissionEnum.Update | PermissionEnum.Delete)]
        public int Color = 1020;
        
        /// <summary>
        /// 分类管理
        /// </summary>
        [Category("分类管理")]
        [Description("分类管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Insert | PermissionEnum.Update | PermissionEnum.Delete)]
        public int Classification = 1021;

        /// <summary>
        /// 头像管理
        /// </summary>
        [Category("头像管理")]
        [Description("头像管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Update | PermissionEnum.Delete)]
        public int HeadImg = 1022;

        /// <summary>
        /// 分组管理
        /// </summary>
        [Category("分组管理")]
        [Description("分组管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Update | PermissionEnum.Delete)]
        public int Grouping = 1023;
        
        /// <summary>
        /// 个性资料管理
        /// </summary>
        [Category("个性资料管理")]
        [Description("个性资料管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Update | PermissionEnum.Delete)]
        public int CharacterData = 1024;
        
        /// <summary>
        /// 音乐管理
        /// </summary>
        [Category("音乐管理")]
        [Description("音乐管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Update | PermissionEnum.Delete)]
        public int Song = 1025;

        /// <summary>
        /// 空间代码管理
        /// </summary>
        [Category("空间代码管理")]
        [Description("空间代码管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Update | PermissionEnum.Delete)]
        public int SpaceCode = 1026;

        /// <summary>
        /// 留言管理
        /// </summary>
        [Category("留言管理")]
        [Description("留言管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Update | PermissionEnum.Delete)]
        public int Leave = 1027;
    }
}
